package com.punai.config.sqlitedomain;

import com.punai.common.utils.sqlite.SLCDesc;
import com.punai.common.utils.sqlite.SLTDesc;
import com.punai.config.sqlitedomain.basic.SqliteEntity;

import java.util.Date;

@SLTDesc(tName = "tab_config_link_struts_item")
public class StructureLinkItem extends SqliteEntity {

    private String elementPid;
    private String elementId;
    private String strutsId;
    private String id;
    private String parentCode;
    @SLCDesc(tc = "calculation_code")
    private String calculationCode;
    private Integer sorting;
    private Date createSate;
    private Integer editState;
    private Date lastModify;
    private String sreachKey;
    private Integer version;

    @SLCDesc(tc = "is_Hz")
    private String isHz;
    private Structure structure;

    private ConfigIndicatorItem item;
    private ConfigIndicatorItem pItem;

    public String getElementPid() {
        return elementPid;
    }

    public void setElementPid(String elementPid) {
        this.elementPid = elementPid;
    }

    public String getElementId() {
        return elementId;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getStrutsId() {
        return strutsId;
    }

    public void setStrutsId(String strutsId) {
        this.strutsId = strutsId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getCalculationCode() {
        return calculationCode;
    }

    public void setCalculationCode(String calculationCode) {
        this.calculationCode = calculationCode;
    }

    public Integer getSorting() {
        return sorting;
    }

    public void setSorting(Integer sorting) {
        this.sorting = sorting;
    }

    public Date getCreateSate() {
        return createSate;
    }

    public void setCreateSate(Date createSate) {
        this.createSate = createSate;
    }

    public Integer getEditState() {
        return editState;
    }

    public void setEditState(Integer editState) {
        this.editState = editState;
    }

    public Date getLastModify() {
        return lastModify;
    }

    public void setLastModify(Date lastModify) {
        this.lastModify = lastModify;
    }

    public String getSreachKey() {
        return sreachKey;
    }

    public void setSreachKey(String sreachKey) {
        this.sreachKey = sreachKey;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Structure getStructure() {
        return structure;
    }

    public void setStructure(Structure structure) {
        this.structure = structure;
    }

    public ConfigIndicatorItem getItem() {
        return item;
    }

    public void setItem(ConfigIndicatorItem item) {
        this.item = item;
    }

    public ConfigIndicatorItem getpItem() {
        return pItem;
    }

    public void setpItem(ConfigIndicatorItem pItem) {
        this.pItem = pItem;
    }

    public String getIsHz() {
        return isHz;
    }

    public void setIsHz(String isHz) {
        this.isHz = isHz;
    }

    @Override
    public String toString() {
        return "StructureLinkItem{" +
                "elementId='" + elementId + '\'' +
                ", strutsId='" + strutsId + '\'' +
                ", id='" + id + '\'' +
                ", parentCode='" + parentCode + '\'' +
                ", calculationCode='" + calculationCode + '\'' +
                ", sorting=" + sorting +
                ", createSate=" + createSate +
                ", editState=" + editState +
                ", lastModify=" + lastModify +
                ", sreachKey='" + sreachKey + '\'' +
                ", version=" + version +
                '}';
    }
}
